import { createRouter, createWebHistory } from "vue-router";

import Home from "../views/home.vue";

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            name: 'home',
            component: Home,
            redirect: '/dashboard',
            children: [
                {
                    path: '/dashboard',
                    component: () => import('../views/index/dashboard.vue')
                },
                {
                    path: '/index',
                    component: () => import('../views/index/index.vue')
                },
                {
                    path: '/query',
                    component: () => import('../views/index/query.vue')
                },
            ]
        },
    ]
})

export default router